package state;

import model.*;

public abstract class AtLeastMaterialListCached implements CachedState {
	
	private final Product product;
	private MaterialList materialList;
	

	protected AtLeastMaterialListCached (Product product, MaterialList materialList){
		this.product = product;
		this.materialList = materialList;
	}
	
	public Product getProduct() {
		return this.product;
	}

	
	public MaterialList getMaterialList() {
		return this.materialList;
	}
	
	
	public void structureChange() {
		
		this.getProduct().setCurrentState(NothingCached.create(this.getProduct()));

	};

}
